package stark.app.function.handwrite;

import com.stark.handwrite.lib.model.HwPaperManager;
import com.stark.handwrite.lib.ui.HandwriteActivity;

import stark.app.R;
import stark.app.databinding.ActivityHandwriteDemoBinding;
import stark.common.basic.base.BaseNoModelActivity;

/**
 * Author：daizhongbin on 2022/11/22
 * Email：1027154338@qq.com
 * Desc:
 */
public class HandwriteDemoActivity extends BaseNoModelActivity<ActivityHandwriteDemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.activity_handwrite_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnEnter.setOnClickListener(v -> {
            HandwriteActivity.start(this, HwPaperManager.getInstance().getPapers().get(0));
        });
        mDataBinding.btnEnterWithText.setOnClickListener(v -> {
            HandwriteActivity.start(this, null, "您可以通过外部输入文本内容来进入手写模拟器");
        });
    }

    @Override
    protected void initData() {

    }
}
